FROM zeonwang/panx-php-fpm

# copy cron tasks
COPY ./cron-tasks /tmp/cron-tasks

# set php post file size
COPY ./upload.ini /usr/local/etc/php/conf.d/upload.ini

# copy ca cert
COPY ./cacert.pem /usr/share/cacert.pem

# php fpm crond start first then fpm
COPY ./entrypoint.sh /
ENTRYPOINT /entrypoint.sh

RUN crontab /tmp/cron-tasks && \
    chmod +x /entrypoint.sh
